package _14define._12homework;
public class ComputerImpl implements Computer{
    @Override
    public void addComputer(double a, double b) {
        System.out.println(a + b);
    }
    @Override
    public void subtractComputer(double a, double b) {
        System.out.println(a - b);
    }

    @Override
    public void multiplyComputer(double a, double b) {
        System.out.println(a * b);
    }
    @Override
    public void exceptComputer(double a, double b) {
        if (b!=0){
            System.out.println(a/b);
        }else
            System.out.println("输入错误");
    }
}
